import json
var1 = "a,b,c,d,e,f,g";

b = var1.split(",")

c = json.dumps(b)

print(c)